using System;
using System.Collections.Generic;

//added for debugging
using System.IO;
using System.Configuration;
using System.Diagnostics;
using System.Threading;


namespace Utilities
{
    public static class TimeWarTrace
    {


        private static void initializeTracing()
        {
            String logFile = null;
            logFile = ConfigurationManager.AppSettings["traceFile"];

            if (logFile == null || logFile.Trim().Length == 0)
            {
                logFile = "timeWarTrace.txt";
            }
            traceStream = File.Create(logFile);
            TraceListener txtTracer = new TextWriterTraceListener(traceStream);
            Trace.Listeners.Add(txtTracer);

            Monitor.Enter(traceStream);
            Trace.WriteLine("[" + DateTime.Now + "]: Tracing began...");
            Monitor.Exit(traceStream);

        }

    }



}
